/*
 * 配置编译环境和线上环境之间的切换
 * baseUrl: 域名地址
 * routerMode: 路由模式
 */
let assetsPublicPath = '';
let defaultIport = '';
let WX_ROOT='';
let WXEnable = '';
let WX_APPID = '';
let IsNative = '';
let SignalRIP = '';
//let routerMode = 'history';

//注：下面的baseUrl地址为假地址，只是模拟的，无法调通。
if (process.env.NODE_ENV == 'development') {//本地 npm run dev
   defaultIport = '10.0.64.253:7007';
   assetsPublicPath = '/';
   WXEnable = false;
   IsNative = false;
   SignalRIP = 'http://10.0.64.249:7029/signalr';
   
}else if(process.env.NODE_ENV == 'server'){//远程服务器   npm run build--ser
   defaultIport = '10.0.64.249:7007';
   assetsPublicPath = './';
   WXEnable = false;
   IsNative = true;

}else if(process.env.NODE_ENV == 'presentation'){//开发环境  npm run build--per
	
   defaultIport = '10.0.64.249:7007';
   assetsPublicPath = './';
   WXEnable = false;
   IsNative = true;
   WX_ROOT = 'http://10.0.66.102:7055';
   WX_APPID = 'wx9605c16e408f4d37';
   SignalRIP = 'http://10.0.64.249:7029/signalr';

}else if(process.env.NODE_ENV == 'testing'){//测试环境 npm run build--test
	
   defaultIport = '10.0.64.253:7007';
   assetsPublicPath = './';
   WXEnable = false;
   WX_ROOT = 'http://zggps.gdunis.com';
   WX_APPID = 'wx816baa924522994b';
   SignalRIP = 'http://10.0.64.253:7029/signalr'

   
}else if(process.env.NODE_ENV == 'production'){//正式环境  npm run build--prod
   defaultIport = '121.10.143.207:7007';
   assetsPublicPath = './';
   WXEnable = true;
   WX_ROOT = 'http://aqfkfw.agfw.cn';
   WX_APPID = 'wxd2241420476d729f';
   
}

module.exports = {
   assetsPublicPath,
   defaultIport,
   WX_ROOT,
   WX_APPID,
   WXEnable,
   IsNative,
   SignalRIP
}

